<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="Inflater,nochump.util.zip.Inflater,inflate,setInput" name="keywords">
<title>nochump.util.zip.Inflater</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Inflater - Papervision3D 3dcnapi文档';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Papervision3D 3dcnapi文档</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">全部包</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">全部类</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">引索</a>&nbsp;|&nbsp;<a href="../../../index.html?nochump/util/zip/Inflater.html&amp;nochump/util/zip/class-list.html" id="framesLink1">框架</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">无框架</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="3dcnapi Logo" title="3dcnapi Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">类&nbsp;Inflater</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">方法</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("类 Inflater"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">包</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">nochump.util.zip</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">类</td><td class="classSignature">public class Inflater</td>
</tr>
</table>
<p></p>

<p>Inflater is used to decompress data that has been compressed according to
the "deflate" standard described in rfc1950. The usage is as following. First
you have to set some input with <code>setInput()</code>, then inflate() it.
This implementation is a port of Puff by Mark Addler that comes with the zlip
data compression library. It is not the fastest routine as he intended it for
learning purposes, his actual optimized inflater code is very different. I went
with this approach basically because I got a headache looking at the optimized
inflater code and porting this was a breeze. The speed should be adequate but
there is plenty of room for improvements here.</p>

<p>Inflater被用来对"deflate"压缩的数据进行解压,详细描述请查看rfc
1950.用法:首先使用setInput()设置输入。然后调用inflate().
此类使用Mark Addler的Puff的部分. ZLIB压缩程序库为通用
解压缩提供支持.它的速度不是很快。
</p>

<p></p>
<br>

<hr>
</div>
<a name="methodSummary"></a> 

<div class="summarySection">

<div class="summaryTableTitle">
公共方法</div>

<table id="summaryTableMethod" class="summaryTable " cellpadding="3"
cellspacing="0">
  <tbody>
    <tr>
      <th> </th>
      <th colspan="2">方法</th>
      <th colspan="1">定义方</th>
    </tr>
    <tr class="">
      <td class="summaryTablePaddingCol"> </td>
      <td class="summaryTableInheritanceCol"> </td>
      <td class="summaryTableSignatureCol">
        <div class="summarySignature">
        <a class="signatureLink"
        href="#inflate()">inflate</a>(buf:ByteArray):uint</div>

        <div class="summaryTableDescription">
        Inflates the compressed stream to the output buffer.将字节解压缩到指定的缓冲区。</div>
      </td>
      <td class="summaryTableOwnerCol">Inflater</td>
    </tr>
    <tr class="">
      <td class="summaryTablePaddingCol"> </td>
      <td class="summaryTableInheritanceCol"> </td>
      <td class="summaryTableSignatureCol">
        <div class="summarySignature">
        <a class="signatureLink"
        href="#setInput()">setInput</a>(buf:ByteArray):void</div>

        <div class="summaryTableDescription">
        Sets the input.为解压缩设置输入数据。</div>
      </td>
      <td class="summaryTableOwnerCol">Inflater</td>
    </tr>
  </tbody>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
-->
</script>

<div class="MainContent">
<a name="methodDetail"></a> 

<div class="detailSectionHeader">
方法详细信息</div>
<a name="inflate()"></a> 

<table cellspacing="0" cellpadding="0" class="detailHeader">
  <tbody>
    <tr>
      <td class="detailHeaderName">inflate</td>
      <td class="detailHeaderParens">()</td>
      <td class="detailHeaderType">方法</td>
    </tr>
  </tbody>
</table>

<div class="detailBody">
<code>public function inflate(buf:ByteArray):uint</code> 

<p>Inflates the compressed stream to the output buffer.将字节解压缩到指定的缓冲区。 </p>
<span class="label">参数</span> 

<table border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td width="20px"></td>
      <td><code><span class="label">buf</span>:ByteArray</code> — the output
        buffer. </td>
    </tr>
  </tbody>
</table>

<p></p>
<span class="label">返回</span> 

<table border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td width="20"></td>
      <td><code>uint</code></td>
    </tr>
  </tbody>
</table>
</div>
<a name="setInput()"></a> 

<table cellspacing="0" cellpadding="0" class="detailHeader">
  <tbody>
    <tr>
      <td class="detailHeaderName">setInput</td>
      <td class="detailHeaderParens">()</td>
      <td class="detailHeaderType">方法</td>
      <td class="detailHeaderRule"> </td>
    </tr>
  </tbody>
</table>

<div class="detailBody">
<code>public function setInput(buf:ByteArray):void</code> 

<p>Sets the input.为解压缩设置输入数据。 </p>
<span class="label">参数</span> 

<table border="0" cellspacing="0" cellpadding="0">
  <tbody>
    <tr>
      <td width="20px"></td>
      <td><code><span class="label">buf</span>:ByteArray</code> — the input.
      </td>
    </tr>
  </tbody>
</table>
</div>
<br>
<br>

<hr>
<br>


<p></p>

<center class="copyright">
http://blog.papervision3d.org</center>
</div>
</body>
</html>
<!--http://blog.papervision3d.org-->
